#include "Settings.h"
#include "ValueHelpers.h"
namespace Cephei { namespace QL {
void Settings::EvaluationDate::set (DateTime datetime)
{
	QuantLib::Settings::instance().evaluationDate() = ValueHelper::Convert (datetime);
}
DateTime Settings::EvaluationDate::get ()
{
	QuantLib::Date qd = QuantLib::Settings::instance().evaluationDate ();
	return ValueHelper::Convert (qd);
}
void Settings::IncludeReferenceDateCashFlows::set (bool b)
{
	QuantLib::Settings::instance().includeReferenceDateCashFlows() = b;
}
bool Settings::IncludeReferenceDateCashFlows::get ()
{
	bool b = QuantLib::Settings::instance().includeReferenceDateCashFlows ();
	return b;
}
void Settings::IncludeTodaysCashFlows::set (bool b)
{
	QuantLib::Settings::instance().includeTodaysCashFlows() = b;
}
bool Settings::IncludeTodaysCashFlows::get ()
{
	bool b = QuantLib::Settings::instance().includeTodaysCashFlows ();
	return b;
}
void Settings::EnforcesTodaysHistoricFixings::set (bool b)
{
	QuantLib::Settings::instance().enforcesTodaysHistoricFixings() = b;
}
bool Settings::EnforcesTodaysHistoricFixings::get ()
{
	bool b = QuantLib::Settings::instance().enforcesTodaysHistoricFixings ();
	return b;
}
void Settings::ReferenceLocking::set (bool b)
{
	_ReferenceLocking = b;
}
bool Settings::ReferenceLocking::get ()
{
	return _ReferenceLocking;
}
}}